gdk,xi2: Make more resilient about not yet known devices
authorCarlos Garnacho <carlosg@gnome.org>
Sun, 18 Dec 2011 17:56:51 +0000 (18:56 +0100)
committerCarlos Garnacho <carlosg@gnome.org>
Sun, 18 Dec 2011 17:57:57 +0000 (18:57 +0100)
commit358ecad50147f9ee377a86fb70a7e58cc600616f
treea25879a4d8feeba26bad3cc821f2d4a56673f63f
parent69fba5d3ed546cc7e6743c4e54af02ea384d05a4
gdk,xi2: Make more resilient about not yet known devices

Dealing with disabled devices may turn into hierarchy/device
changed events on device IDs with no backing GdkDevice yet,
so protect against that. The device attachment will be handled
correctly when the device is enabled later.
gdk/x11/gdkdevicemanager-xi2.c